<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class ModifyNoticeUserTable20200801 extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('notice_user', function (Blueprint $table) {
            $table->dropColumn('show_type');
            $table->integer('type')->change();
        });
        Schema::table('notice_employer', function (Blueprint $table) {
            $table->dropColumn('show_type');
            $table->integer('type')->change();
        });
        Schema::table('notice_cooperative', function (Blueprint $table) {
            $table->dropColumn('show_type');
            $table->integer('type')->change();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('', function (Blueprint $table) {

        });
    }
}
